import logo from './logo.svg'
import './App.css'
import { BrowserRouter, Link, Route, Routes } from 'react-router-dom'

import Home from './component/home'
import About from './component/about'
import Detail from './component/home/detail'
import HomeItem from './component/home/HomeItem'

function App() {
  return (
    <div className="App">
      <BrowserRouter>
        <Routes>
          <Route path="/" element={<Home />}>
            <Route index element={<HomeItem />}></Route>
            {/* <Route path="news" element={<HomeItem />}></Route> */}
            <Route path="news" element={<div>新闻界面</div>}></Route>
            <Route path="yule" element={<div>娱乐界面</div>}></Route>
            <Route path="about" element={<div><About /></div>}></Route>
          </Route>
        </Routes>
      </BrowserRouter>
    </div>
  )
}

export default App
